import UserModel from "../../../../models/User";
import Crypt from "../../../../utils/Crypt";

const userModel = new UserModel()

Page({
  data: {
    text: ''
  },
  onLoad: function (options) {
    this.getSet()
  },

  getSet() {
    userModel.getAgreement().then(response => {
      let { data } = response
      data = Crypt.parse(data)
      this.setData({ text: data.text })
    })
  },

});
